load("@rules_apple//apple:ios.bzl", "ios_ui_test")
load(
    "@rules_swift//swift:swift.bzl",
    "swift_library",
)
load("//platform/ios/bazel:provisioning.bzl", "configure_device_profiles")

configure_device_profiles()

swift_library(
    name = "uitest_srcs",
    testonly = True,
    srcs = glob(["*.swift"]),
)

ios_ui_test(
    name = "uitest",
    size = "large",
    minimum_os_version = "12.0",
    provisioning_profile = "xcode_profile",
    test_host = "//platform/ios:App",
    visibility = [
        "@rules_xcodeproj//xcodeproj:generated",
    ],
    deps = [
        "uitest_srcs",
    ],
)

exports_files([
    "Info.plist",
])
